/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package job.manager.db.sb;

import java.util.Collection;
import javax.ejb.Remote;
import job.manager.db.ec.JobEB;
import job.manager.db.ec.ProfilesEB;

/**
 *
 * @author Administrator
 */
@Remote
public interface JobRemote {

   Collection<ProfilesEB> getWorkers(Integer jobId);

    JobEB getJob(Integer parameter);
    public Collection<JobEB> getJobsByProfile(ProfilesEB profile);
    public Collection<JobEB> getJobsByProfile(Integer profileId);
    Collection<JobEB> getAllJobs();

    public JobEB insert(JobEB job);
    public int update(JobEB job);
    public int delete(JobEB job);
}
